package kr.hkit.powerjava.chapter11.submit;

class Customer extends Person {
	int customernum;
	int mileage;

	public Customer(String name, String address, String phonenum,
			int customernum, int mileage) {
		super(name, address, phonenum);
		this.customernum = customernum;
		this.mileage = mileage;
	}

	public Customer() {
	}

	public int getCustomernum() {
		return customernum;
	}
	public void setCustomernum(int customernum) {
		this.customernum = customernum;
	}
	public int getMileage() {
		return mileage;
	}
	public void setMileage(int mileage) {
		this.mileage = mileage;
	}

	@Override
	public String toString() {
		return "고객이름: " + name + ", 주소: " + address + ", 전화번호: " + phonenum
				+ ", 고객번호: " + customernum + ", 마일리지=" + mileage;
	}

	
	public static void main(String[] args) {
		Customer c = new Customer();

		c.setName("추지영");
		c.setAddress("대구 북구");
		c.setPhonenum("010-010-0100");
		c.setCustomernum(12345);
		c.setMileage(5000);
		System.out.println(c);

		Customer c1 = new Customer("홍길동", "서울", "010-123-4567", 12346, 3000);
		System.out.println(c1);

	}
}
